from django.shortcuts import render
from django.views.generic import TemplateView

from assets.models import Host


class IndexView(TemplateView):
    template_name = "index.html"

    def get_context_data(self, **kwargs):
        host_list = Host.objects.all()
        kwargs.update(host_list=host_list)
        return super(IndexView, self).get_context_data(**kwargs)
